package com.hyl.design;

/**
 * @Description 中介 ==》 买房的  =》假
 * @Author com.com.hyl
 * @Date 2022/9/13 10:41
 **/
public class Intermediary implements Buyer {


	private Buyer realBuyer;//真正需要买房的人

	public Intermediary(Buyer realBuyer) {
		this.realBuyer = realBuyer;
	}

	@Override
	public void look() {
		System.out.println("查找房源。。");
		realBuyer.look();
		System.out.println("谈价，办手续。。。");

	}

	public void setRealBuyer(Buyer realBuyer) {
		this.realBuyer = realBuyer;
	}
}
